package com.atguigu.orderService.client;

import com.atguigu.commonUtils.vo.UcenterMemberVo;
import com.atguigu.orderService.client.impl.UcenterClientImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {


    @ApiOperation("根据用户id获取用户信息")
    @GetMapping("/ucenterService/member/getMember/{id}")
    public UcenterMemberVo getMember(@PathVariable("id") String id);
}
